<template>
  <div class="demo-title">chexkbox/demo4</div>
  <div class="demo">
    <CheckboxGroup v-model="val" layout="horizontal">
      <Checkbox class="checkbox" label="A">A</Checkbox>
      <Checkbox class="checkbox" label="B">B</Checkbox>
      <Checkbox class="checkbox" label="C">C</Checkbox>
      <Checkbox class="checkbox" label="D">D</Checkbox>
    </CheckboxGroup>
  </div>
</template>

<script lang="ts" setup>
  import { ref } from 'vue'
  import { Checkbox, CheckboxGroup } from '@sscd-mobile/checkbox'
  const val = ref(['B', 'C'])
</script>

<style lang="less" scoped>
  .demo {
    padding: 12px;
    background-color: #fff;
  }
</style>
